<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!-- 请选择一款你喜欢的游戏，尝试声明游戏里的事物，如人物、道具等等，至少5个。 -->
		<script type="text/javascript">
			// new Object()声明一个对象。
			let character = new Object();
			character.name = "暖暖";
			character.age = 20;
			character.props = "服装";
			character.address = "手机";
			character.lz = "APP";
			console.log(character); //{"暖暖",20,"服装","手机","APP"}

			//{}声明一个对象
			let character1 = {
				name: "暖暖",
				age: 20,
				props: "服装",
				address: "手机",
				lz: "APP"
			};
			console.log(character1); 
		</script>
	</body>
</html>
